package edu.xidian.bdilab.jrbigdata.controller.enterprise;

import edu.xidian.bdilab.jrbigdata.controller.response.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import  edu.xidian.bdilab.jrbigdata.service.enterprise.changepassword.changepasswordService;
@RestController
@Api(tags = {"changepassword--修改企业登陆密码"})
public class changepassword{

    @Autowired
    public changepasswordService changepasswordService;

    @RequestMapping(value = "enterprise/changepassword", method = RequestMethod.POST)
    public ResponseResult enterprise_login(@RequestParam String username,
                                           @RequestParam String password,
                                           @RequestParam String newPassword) {

        ResponseResult responseResult= changepasswordService.changeWord(username,password,newPassword);
        return responseResult;

    }

}
